Installation of xml files.

RealLifeNumbers reads a number of xml files containing parameter values unique to a given 
area/country.
These xml files are located in  My Games/FarmingSimulator2022/modSettings/RealLifeNumbers/savegameN
where N is a number.
If you want to play a game saved in savegame5, then place the xml files in
My Games/FarmingSimulator2022/modSettings/RealLifeNumbers/savegame5.

--- The issue with my_animalTypes.xml

This file specifies different animal parameters based on age (in months). In the example below
buyprices are defined for 4 ages. There are then 4 keyframes in this definition. On the other hand
there are only 3 keyframes for transport prices.

<buyPrices>
  <buyPrice 			age="0"  price="75"   			grazingPeriodScaleFactor="1"/>
  <buyPrice 			age="24" price="1200" 			grazingPeriodScaleFactor="1"/>			
  <buyPrice 			age="36" price="1200" 			grazingPeriodScaleFactor="1"/>
  <buyPrice 			age="60" price="1000" 			grazingPeriodScaleFactor="1"/>
</buyPrices>

<transportPrices>
  <transportPrice 		age="0"  price="10"   			grazingPeriodScaleFactor="1"/>
  <transportPrice 		age="12" price="16" 			grazingPeriodScaleFactor="1"/>			
  <transportPrice 		age="18" price="20" 			grazingPeriodScaleFactor="1"/>
</transportPrices>

The number of keyframes in my_animalTypes.xml must match the number of keyframes in the file
animals.xml. This file is sometimes defined in the map. It is also defined in MaizePlus and in 
EnhancedAnimalSystem. Depending on what mods you use, the number of keyframes will change.
For this reason, their are many versions of the file my_animalTypes.xml in the RLN distribution.
1. my_animalTypes - EnhancedAnimalSystem.xml -- to be used if you use EnhancedAnimalSystem
2. my_animalTypes - maizePlus -- to be used if you use MaizePlus without EnhancedAnimalSystem
3. my_animalTypes - no maizePlus -- to be used if you do not use any of MaizePlus or EnhancedAnimalSystem

If you use EnhancedAnimalSystem, the file my_animalTypes - EnhancedAnimalSystem.xml will most likely
also permit you to switch MaizePlus on or off.

To use my_animalTypes - EnhancedAnimalSystem.xml, make a copy and rename the copy my_animalTypes.xml

--- With or without EnhancedAnimalSystem

The mod EnhancedAnimalSystem (EAS) adds different age groups to animals and is a great addition 
to the game. Some maps (Hof Bergman v. 1.3.0.0, Ballyspring 2.0.0.0) already have similar features 
and may not work well (or at all) with EAS.

---  With or without MaizePlus:

If you want to play a game with MaizePlus, select the xml files from a folder with 
"MaizePlus" added to the country name.

If you do not want to play with MaizePlus, select the xml files from the folder with 
"no MaizePlus" added to the country name.

To use MaizePlus together with EnhancedAnimalSystems (recommended), I had to make a small change 
to the mod: FS22_maizePLus_animalFoodAddition.
 
Unzip the mod, and edit the file maizePlus_animalDataOverride.

COW_SWISS_BROWN has 11 keyframes for milkoutput. However, COW_HOLSTEIN has only 10. Add another
keyframe to COW_HOLSTEIN so both types of cows have 11 keyframes for milk output.

<output type="milk" >
       	<key ageMonth="0"  	value="0" />
       	<key ageMonth="12" 	value="0" />
	<key ageMonth="17" 	value="0" />
       	<key ageMonth="19" 	value="0" /> 
	<key ageMonth="20" 	value="0" /> 
	<key ageMonth="22" 	value="0" /> 
	<key ageMonth="23" 	value="0" /> 
	<key ageMonth="24" 	value="0" /> 
	<key ageMonth="26" 	value="0" /> 
	<key ageMonth="27" 	value="1300" /> 
	<key ageMonth="28" 	value="1600" /> 
</output>

--- Maps with multifruit:

The xml files my_cropGrowth.xml, my_fillTypes.xml and my_fruitTypes.xml have an extended
set of fruits. Multifruit crops not included in the map will be ignored.

It used to be that you would not be able to use maizePlus on a multifruit map due to a max number
of densityMapHeightTypes. In a recent game update the max number of fill types was extended.
I have therefore succesfully tested Multifruit maps with MaizePlus.



--- Maps with extended animals:

HofBergmann, Wild West, and BallySpring are examples of maps with extended animals. There are special
xml folders for these maps.



--- Maps with "deleted" standard crops:

Some maps have "deleted" standard crops by not providing growth data for them in maps_growth.xml
This does not delete the crop from the game and these crops are missing data. In this case 
RLN will fail in the script RealNumbersCropGrowth.lua. 

In this case you need to cut that fruit from my_cropGrowth.xml and paste it in the comment
section at the bottom of the file. An example is shown in UK-Court Farm:

<!--

	Fruits you do not want to change should be cut from above and pasted.
	
<fruit name="sugarcane" > 			
	<cycle1 seedMonth="1"   harvestMonth="11"	firstDormantMonth="0"	 lastDormantMonth="0" />
	<cycle2 seedMonth="2"   harvestMonth="12"	 firstDormantMonth="0"	 lastDormantMonth="0" />
	<options autoGenerate="false"	needsRolling="false"	growthRequiresLime="true" consumesLime="true"/>
</fruit>

-->